package com.logictech.lims.entity;

import java.util.Date;
import org.jeecgframework.p3.core.utils.persistence.Entity;

/**
 * 描述：</b>ExperimentMaterial:实验<br>
 * 
 * @author guoqi
 * @since：2017年04月22日 10时21分18秒 星期六
 * @version:1.0
 */
public class ExperimentMaterial implements Entity<Integer> {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private Integer id;
	/**
	 * 实验id
	 */
	private Integer experimentId;
	/**
	 * 实验
	 */
	private String experiment;
	/**
	 * 材料类型
	 */
	private String materialType;
	/**
	 * 材料类型
	 */
	private String materialTypeVal;
	/**
	 * 材料id
	 */
	private String materialId;
	/**
	 * 实验材料名称
	 */
	private String materialName;
	/**
	 * 创建者Id
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新者Id
	 */
	private String updateUser;
	/**
	 * 更新时间
	 */
	private Date updateTime;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getExperimentId() {
		return this.experimentId;
	}

	public void setExperimentId(Integer experimentId) {
		this.experimentId = experimentId;
	}

	public String getMaterialType() {
		return this.materialType;
	}

	public void setMaterialType(String materialType) {
		this.materialType = materialType;
	}

	public String getMaterialTypeVal() {
		if ("1".equals(materialType)) {
			materialTypeVal = "试剂";
		} else if ("2".equals(materialType)) {
			materialTypeVal = "试液";
		}

		return materialTypeVal;
	}

	public void setMaterialTypeVal(String materialTypeVal) {
		this.materialTypeVal = materialTypeVal;
	}

	public String getMaterialId() {
		return this.materialId;
	}

	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getExperiment() {
		return experiment;
	}

	public void setExperiment(String experiment) {
		this.experiment = experiment;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	@Override
	public String toString() {
		return "[实验名称=" + experiment + ", 实验材料类型=" + getMaterialTypeVal() + ", 实验材料名称=" + materialName + "]";
	}

}
